<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品管理系统</title>
    <link rel="stylesheet" href="libs/css/bootstrap.min.css">
    <link rel="stylesheet" href="./css/index.css">
    <script src="libs/jquery-3.4.1.min.js"></script>
    <script src="libs/jquery-3.5.1.min.js"></script>
    <script src="libs/js/bootstrap.min.js"></script>
    <script src="js/utils.js"></script>
    <script src="libs/jquery.cookie.js"></script>
</head>
<body>
    <nav class="navbar navbar-default">
        <div class="container">
          <!-- Brand and toggle get grouped for better mobile display -->
          <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#"><img src="img/logo.png" alt="Brand"></a>
          </div>
      
          <!-- Collect the nav links, forms, and other content for toggling -->
          <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
              <li class="active"><a href="#">首页</a></li>
              <li><a href="#">蛋糕</a></li>
              <li><a href="#">甜品</a></li>
            </ul>
            <form class="navbar-form navbar-left">
              <div class="form-group">
                <input type="text" class="form-control" placeholder="请输入商品名">
              </div>
              <button type="submit" class="btn btn-default">搜索</button>
            </form>
            <ul class="nav navbar-nav navbar-right" id="un-login">
              <li><a href="./html/login.html">登录</a></li>
              <li><a href="./html/register.html">注册</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right hidden" id="is-login">
              <li><a>欢迎你，<b></b></a></li>
              <li><a href="javascript:;" id="logout">退出登录</a></li>
            </ul>
          </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <div class="container">
        <button class="btn btn-customize btn-primary btn-default" data-toggle="modal" data-target="#cakeModal">
            添加商品
        </button>
        <table class="table tab-customize table-bordered tab-dis">
            <thead>
                <tr>
                    <th>商品编号</th>
                    <th>商品名称</th>
                    <th>商品价格(元)</th>
                    <th>商品数量</th>
                    <th>商品尺寸(cm)</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody id="shop-tbody">
                <!-- <tr data-id="${shop.id}">
                    <td>1</td>
                    <td><span>闲蛋皇</span><input type="text"></td>
                    <td><span>258￥</span><input type="text"></td>
                    <td><span>20</span><input type="text"></td>
                    <td><span>13x13x3cm</span><input type="text"></td>
                    <td>
                        <button class="btn btn-info btn-sm btn-customize-edit">编辑</button>
                        <button class="btn btn-danger btn-sm btn-customize-del">删除</button>
                        <button class="btn btn-success btn-sm btn-customize-sure">确定</button>
                        <button class="btn btn-warning btn-sm btn-customize-cancel">取消</button>
                    </td>
                </tr> -->
            </tbody>
        </table>
    </div>

<!-- Modal模态框 -->
    <div class="modal fade" id="cakeModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">添加商品</h4>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                          <label for="waresName" class="control-label">商品名称：</label>
                          <input type="text" class="form-control" id="waresName">
                        </div>
                        <div class="form-group">
                          <label for="waresPrice" class="control-label">商品价格：</label>
                          <input type="text" class="form-control" id="waresPrice">
                        </div>
                        <div class="form-group">
                            <label for="waresNum" class="control-label">商品数量：</label>
                            <input type="text" class="form-control" id="waresNum">
                          </div>
                          <div class="form-group">
                            <label for="waresSize" class="control-label">商品尺寸：</label>
                            <input type="text" class="form-control" id="waresSize">
                          </div>
                      </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" id="btn-add">确定</button>
                </div>
            </div>
        </div>
    </div>
    <script src="js/select.js"></script>
    <script src="js/edit.js"></script>
    <script src="js/add.js"></script>
    <script src="js/index.js"></script>
    
</body>
</html>